package com.mxt.moviedemo.service;

import com.mxt.moviedemo.entity.*;

import java.util.List;

public interface MoviesService {
    PageResult<Movies> getMoviesByPage(PageRequest pageRequest);

    PageResult<Movies> searchMoviesByKeyword(PageRequest pageRequest, String keyword);


    Movies getMovieById(int mid);

    List<Geners> getMovieGeners(int mid);
    List<Actors> getMovieActors(int mid);
    List<Directors> getMovieDirectors(int mid);


    PageResult<Geners> getGenersByPage(PageRequest pageRequest);

    // 新增电影
    int addMovie(Movies movie);

    // 删除电影
    int deleteMovie(int mid);

    // 修改电影信息
    int updateMovie(Movies movie);



    List<Movies> searchMoviesByName(String mname);


    Movies getMovieByName(String mname);


    Geners getGenersById(int gid);
    List<Geners> searchGenersByName(String gname);
    int addGeners(Geners geners);
    boolean updateGeners(Geners geners);
    int deleteGeners(int gid);
}